<script setup>
import axios  from 'axios'
import { ref } from 'vue';
import { useRouter } from 'vue-router';
import Goods from './components/Goods.vue';
import { useAddressStore } from '../../../stores/address';

const addressStore = useAddressStore();

const router = useRouter()  //获取路由实例对象
const active = ref(0);



</script>

<template>
    <van-cell icon="location-o" :title="addressStore.curAddress?.address || '请选择配送地址'" is-link @click="$router.push('/address')" />
    <van-tabs v-model:active="active" sticky>
        <van-tab title="标签 1">
            <Goods />
        </van-tab>
        <van-tab title="标签 2">内容 2</van-tab>
        <van-tab title="标签 3">内容 3</van-tab>
        <van-tab title="标签 4">内容 4</van-tab>
    </van-tabs>


</template>

<style scoped lang="scss">

</style>